import { UiManager } from "../manager/ui_manager";
import Store from "../store/store";

const { ccclass, property } = cc._decorator;

@ccclass
export default class DialogController extends cc.Component {
  async closeDialog() {
    await UiManager.hideDialog(Store.dialog);
    Store.dialog.removeFromParent();
    Store.dialog.destroy();
    console.log("对话框关闭");
  }

  // update (dt) {}
}
